'use client';

import Link from 'next/link';
import { Button } from '@/components/ui/button';
import { Home, ArrowLeft } from 'lucide-react';

export default function NotFound() {
  return (
    <div className="min-h-screen bg-background flex items-center justify-center">
      <div className="text-center space-y-6">
        <div className="space-y-2">
          <h1 className="text-6xl font-bold text-primary">404</h1>
          <h2 className="text-2xl font-semibold">页面未找到</h2>
          <p className="text-muted-foreground max-w-md">
            抱歉，您访问的页面不存在或已被移动。请检查 URL 是否正确，或返回首页继续浏览。
          </p>
        </div>
        
        <div className="flex items-center justify-center space-x-4">
          <Link href="/">
            <Button>
              <Home className="h-4 w-4 mr-2" />
              返回首页
            </Button>
          </Link>
          <Button variant="outline" onClick={() => window.history.back()}>
            <ArrowLeft className="h-4 w-4 mr-2" />
            返回上页
          </Button>
        </div>
      </div>
    </div>
  );
}
